package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 卸货记录
 * </p>
 *
 * @author zixin
 * @since 2021-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("it_unload_log")
@ApiModel(value = "UnloadLog对象", description = "卸货记录 ")
public class UnloadLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("磅单编号")
    private String number;

    @ApiModelProperty(value = "车号ID")
    @TableField("wagon_number_id")
    private Integer wagonNumberId;

    @ApiModelProperty(value = "卡号ID")
    @TableField("ic_id")
    private Integer icId;

    @ApiModelProperty(value = "物料ID")
    @TableField("material_id")
    private Integer materialId;

    @ApiModelProperty(value = "装货点ID")
    @TableField("load_id")
    private Integer loadId;

    @ApiModelProperty(value = "卸货点ID")
    @TableField("unload_id")
    private Integer unloadId;

    @ApiModelProperty(value = "皮重/吨")
    @TableField("tare")
    private String tare;

    @ApiModelProperty(value = "毛重/吨")
    @TableField("rough")
    private String rough;

    @ApiModelProperty("毛重图片1")
    private String roughImg;

    @ApiModelProperty("毛重图片2")
    private String roughImgTwo;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private Integer createdBy;

    @ApiModelProperty(value = "卸货时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    private Integer updatedBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除人")
    @TableField("deleted_by")
    private Integer deletedBy;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    @ApiModelProperty(value = "派车单ID")
    @TableField("task_id")
    private Integer taskId;

}
